import request from "@/utils/request";


export function getMajorList(data) {
  return request({
    url: "/adminapi/v1.portal.PortalMajor",
    method: "post",
    data,
  });
}

export function addMajor(data) {
  return request({
    url: "/adminapi/v1.portal.PortalMajor/create",
    method: "post",
    data,
  });
}

export function delMajor(data) {
  return request({
    url: "/adminapi/v1.portal.PortalMajor/delete",
    method: "post",
    data,
  });
}
export function updateMajor(data) {
  return request({
    url: "/adminapi/v1.portal.PortalMajor/update",
    method: "post",
    data,
  });
}
export function searchTitle(data) {
  return request({
    url: "/adminapi/v1.portal.PortalMajor/searchTitle",
    method: "post",
    data,
  });
}

export function getInformList(data) {
  return request({
    url: "/adminapi/v1.portal.PortalInform",
    method: "post",
    data,
  });
}

export function createInform(data) {
  return request({
    url: "/adminapi/v1.portal.PortalInform/create",
    method: "post",
    data,
  });
}

export function updateInform(data) {
  return request({
    url: "/adminapi/v1.portal.PortalInform/update",
    method: "post",
    data,
  });
}

export function deleteInform(data) {
  return request({
    url: "/adminapi/v1.portal.PortalInform/delete",
    method: "post",
    data,
  });
}

export function searchInformTitle(data) {
  return request({
    url: "/adminapi/v1.portal.PortalInform/searchTitle",
    method: "post",
    data,
  });
}

export function getSchoolDesc(data) {
  return request({
    url: "/adminapi/v1.portal.PortalSchoolDesc",
    method: "post",
    data,
  });
}

export function createOrUpdateSchoolDesc(data) {
  return request({
    url: "/adminapi/v1.portal.PortalSchoolDesc/createOrUpdate",
    method: "post",
    data,
  });
}


export function getSchoolHelp(data) {
  return request({
    url: "/adminapi/v1.portal.PortalSchoolHelp",
    method: "post",
    data,
  });
}

export function createOrUpdateSchoolHelp(data) {
  return request({
    url: "/adminapi/v1.portal.PortalSchoolHelp/createOrUpdate",
    method: "post",
    data,
  });
}

export function getSiteConfig(data) {
  return request({
    url: "/adminapi/v1.portal.PortalSiteConfiguration",
    method: "post",
    data,
  });
}

export function createOrUpdateSiteConfig(data) {
  return request({
    url: "/adminapi/v1.portal.PortalSiteConfiguration/createOrUpdate",
    method: "post",
    data,
  });
}
